package com.ncr.travel.appmgr.client.event;

import java.util.List;

import com.google.gwt.event.shared.GwtEvent;
import com.ncr.travel.appmgr.model.shared.Text;

public class LoadConfigChangeEvent extends GwtEvent<LoadConfigChangeEventHandler> {
	private static Type<LoadConfigChangeEventHandler> TYPE = new Type<LoadConfigChangeEventHandler>();

	/**
	 * Gets the event type associated with load events.
	 * 
	 * @return the handler type
	 */
	public static com.google.gwt.event.shared.GwtEvent.Type<LoadConfigChangeEventHandler> getType() {
		return TYPE;
	}

	/**
	 * @see com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared.EventHandler)
	 */
	@Override
	protected void dispatch(LoadConfigChangeEventHandler handler) {
		handler.onLoad(this);
	}

	protected void fire(HasLoadConfigChangeHandlers source) {
		source.fireEvent(new LoadConfigChangeEvent());
	}

	public static void fire(HasLoadConfigChangeHandlers source, long screenId, String screenName, String url,
			List<Text> textConfigs) {
		source.fireEvent(new LoadConfigChangeEvent());
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<LoadConfigChangeEventHandler> getAssociatedType() {
		return TYPE;
	}

}
